package com.vicente.managerdemo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 爬虫作业监控接收人表
 * </p>
 *
 * @author vicente
 * @since 2024-12-03
 */
@Getter
@Setter
@TableName("mb_user")
@ApiModel(value = "User对象", description = "爬虫作业监控接收人表")
public class User {

    @ApiModelProperty("主键自增")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("邮件接受者唯一标识id")
    @TableField("receiver_id")
    private Integer receiverId;

    @ApiModelProperty("邮件地址")
    @TableField("email_addr")
    private String emailAddr;

    @ApiModelProperty("工号")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty("用户名称")
    @TableField("username")
    private String username;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("创建者")
    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("更新者")
    @TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @ApiModelProperty("是否删除")
    @TableLogic
    //@TableField(select = false)
    private Integer isDelete;
}
